package com.ctcc.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
@AllArgsConstructor
public class UserInfoBody {


    /**
     * {
     "errorCode": 0,
     "data": {
     "appid": "500041933",
     "xtid": "5a41b292e4b058cf3d0cf312",
     "oid": "5a41b292e4b058cf3d0cf314",
     "eid": "10603457",
     "username": "成建蒋",
     "userid": "5a41af0ae4b0820e92cd9868",
     "uid": "101341872",
     "tid": "10603457",
     "networkid": "58df7e16e4b053f44063edca",
     "deviceId": "1517361645",
     "openid": "5a41b292e4b058cf3d0cf314",
     "ticket": null
     },
     "success": true,
     "error": null
     }
     */

    private DataBean data;
    private Object error;
    @JsonProperty(value = "errorCode")
    private int errorCode;
    private boolean success;

    @NoArgsConstructor
    @Data
    public static class DataBean {
        /**
         * accessToken : vDwuKPzg5aJdkkBgPEvdp2mvXNOUOk0E
         * expireIn : 7200
         * refreshToken : I8LizwKle1jQkPfHP7w4GLyFDt592PmF
         */

        @JsonProperty(value = "appid")
        private String appid;
        @JsonProperty(value = "xtid")
        private String xtid;
        @JsonProperty(value = "oid")
        private String oid;
        @JsonProperty(value = "eid")
        private String eid;
        @JsonProperty(value = "username")
        private String username;
        @JsonProperty(value = "userid")
        private String userid;
        @JsonProperty(value = "tid")
        private String tid;
        @JsonProperty(value = "networkid")
        private String networkid;
        @JsonProperty(value = "deviceId")
        private String deviceId;
        @JsonProperty(value = "openid")
        private String openid;
        @JsonProperty(value = "ticket")
        private String ticket;





    }
}